import { defineStore } from 'pinia'

export const useBasicListStore = defineStore('basicList', {
  state: () => ({
    searchData: {},
    currentPage: 1
  }),
  actions: {
    resetState() {
      this.$reset()
    },
    saveState(payload: Recordable) {
      Object.assign(this, payload)
    },
  },
  persist: true,
})
